package lab.gene.pojo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import lab.user.pojo.User;

@Entity
@Table(name = "second_pcr")
public class GeneSecondStagePCR implements Serializable {
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue
	@Column(name="id")
	private int id;
	
	@ManyToOne(targetEntity = User.class)
    @JoinColumn(name = "username")
	private User user;
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	
	@ManyToOne(targetEntity = Gene.class)
    @JoinColumn(name = "genename")
	private Gene gene;
	public Gene getGene() {
		return gene;
	}
	public void setGene(Gene gene) {
		this.gene = gene;
	}
	
	@Column(name="step_type")
	private String stepType;
	
	@Column(name="comments")
	private String comments;
	
	@Temporal(TemporalType.DATE) 
	@Column(name="record_date")
	private Date recordDate;
	
	@Temporal(TemporalType.TIMESTAMP) 
	@Column(name="date_modified")
	private Date dateModified;
	
	@Column(name="volume1")
	private Integer volume1;
	
	@Column(name="volume2")
	private Integer volume2;
	
	@Column(name="ml1")
	private Integer ml1;
	
	@Column(name="ml2")
	private Integer ml2;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getStepType() {
		return stepType;
	}
	public void setStepType(String stepType) {
		this.stepType = stepType;
	}
	public String getComments() {
		return comments;
	}
	public void setComments(String comments) {
		this.comments = comments;
	}
	public Date getRecordDate() {
		return recordDate;
	}
	public void setRecordDate(Date recordDate) {
		this.recordDate = recordDate;
	}
	public Date getDateModified() {
		return dateModified;
	}
	public void setDateModified(Date dateModified) {
		this.dateModified = dateModified;
	}
	public Integer getVolume1() {
		return volume1;
	}
	public void setVolume1(Integer volume1) {
		this.volume1 = volume1;
	}
	public Integer getVolume2() {
		return volume2;
	}
	public void setVolume2(Integer volume2) {
		this.volume2 = volume2;
	}
	public Integer getMl1() {
		return ml1;
	}
	public void setMl1(Integer ml1) {
		this.ml1 = ml1;
	}
	public Integer getMl2() {
		return ml2;
	}
	public void setMl2(Integer ml2) {
		this.ml2 = ml2;
	}
	
}
